/**
 * Project Name:Micro-Services-RPC-Registry
 * File Name   :ClientCuratorFactory.java
 * Package Name:com.micro.services.rpc.registry.support
 * Date:2015年9月7日下午11:48:02
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/

package com.micro.services.rpc.registry.support;

import java.util.Collection;

import org.apache.curator.framework.CuratorFramework;

/**
 * ClassName:ClientCuratorFactory <br/>
 * Function :客户端 CuratorFramework 本地缓存工厂 . <br/>
 * Reason	:TODO ADD REASON. <br/>
 * Date     :2015年9月7日 下午11:48:02 <br/>
 * @author  :http://my.oschina.net/httpssl
 * @email   :491835898@QQ.COM
 * @since   :JDK 1.7
 * @see 	 
 */
public interface ClientCuratorFactory
{
	Collection<String> getAppNames();

	public boolean isContainsApp(String appName);

	public CuratorFramework getCuratorFrameworkByAppName(String appName);
	
	public boolean installCuratorFramework(String appName, CuratorFramework curatorFramework);
	
	public boolean uninstallCuratorFramework(String appName);
	
	public boolean uninstallCuratorFramework(String appName, CuratorFramework curatorFramework);
}
